﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditExp.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Param.Group.EditExp" %>

<form id="pageForm" method="post" runat="Server" class="pageForm required-validate"
    onsubmit="return validateCallback(this, dialogAjaxDone);" action="/SystemManage/Basics/Param/Group/EditExp.aspx">

<!-- JS 代码段 -->
<script type="text/javascript">
$(document).ready(function() {
    $("#ddl_type").change(function() {
        var $relation = $("#ddl_relation");
        var opt = "0";
        switch ($("#ddl_type").val()) {

<asp:Repeater ID="rp_typejs" runat="server">
    <ItemTemplate>
            case '<%# Eval("Key")%>': opt = '<%# Eval("Value")%>'; break;
    </ItemTemplate>
</asp:Repeater>

            default:opt = "0"; break;
        }
        if (opt == "1") {
            $relation.removeAttr("disabled");
        }
        else {
            $relation.attr("disabled", "disabled");
        }
    });
});
</script>

<!-- 需保存的全局变量 -->
<asp:label runat="server" ID="_groupId" Visible="False" ></asp:label>
<asp:label runat="server" ID="_code" Visible="False" ></asp:label>
    
<div class="pageContent">
    <div class="pageFormContent" layoutH="56">
    
        <dl class="nowrap">
            <dt>扩展代码：</dt>
            <dd><asp:TextBox id="tb_code" width="200px" runat="server"></asp:TextBox></dd>
        </dl>
        <dl class="nowrap">
            <dt>扩展名称：</dt>
            <dd><asp:TextBox id="tb_name" width="200px" runat="server"></asp:TextBox></dd>
        </dl>
        <dl class="nowrap">
            <dt>扩展类型：</dt>
            <dd><asp:dropdownlist id="ddl_type" runat="server" width="200px" ></asp:dropdownlist></dd>
        </dl>
        <dl class="nowrap">
            <dt>扩展关联组：</dt>
            <dd><asp:dropdownlist id="ddl_relation" runat="server" width="200px"></asp:dropdownlist></dd>
        </dl>
        
	</div>
        
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
		</ul>
	</div>  
</div>
</form>